package com.gzx.plugin.tjzy.modular.liaison.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import vip.xiaonuo.common.handler.CommonSm1AesTypeHandler;
import vip.xiaonuo.common.pojo.TenantEntity;

/**
 * 欠款人关系人的通讯录对象 gzx_loan_relation_phone
 *
 * @author LionLi
 * @date 2024-09-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "gzx_debtor_liaison", autoResultMap = true)
public class GzxDebtorLiaison extends TenantEntity {

    /**
     * 自增主键
     */
    @TableId(value = "id")
    private Long id;

    private String projectCode;

    /**
     * 借款人身份证号
     */
    @TableField(typeHandler = CommonSm1AesTypeHandler.class)
    private String debtorCardId;

    /**
     * 与欠款人关系
     */
    private Integer callRecipient;

    private String relationship;

    /**
     * 联系人姓名
     */
    private String liaisonName;

    /**
     * 联系人手机号
     */
    @TableField(typeHandler = CommonSm1AesTypeHandler.class)
    private String liaisonPhone;

    /**
     * 工作地址
     */
    private String workAddress;

    /**
     * 电话来源
     */
    private Integer phoneSource;

    /**
     * 号码状态
     */
    private Integer phoneStatus;

    /**
     * 上次通话时间
     */
    private String lastCallTime;

    /**
     * 备注
     */
    private String remark;
}
